package com.gepengjun.springboot.jwt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gepengjun.springboot.base.entity.BaseEntity;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonView;
/**
 * <p>
 *  实体类
 * 
 * </p>
 *
 * @author gepengjun
 * @since 2020-02-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Suser extends BaseEntity<Suser> {

    private static final long serialVersionUID = 1L;

    /**
     * 流水号
     */
    @TableId(value = "serialNo", type = IdType.UUID)
    @JsonView
    private String serialNo;

    @JsonView
    private String username;

    @JsonView
    private String password;


    @Override
    protected Serializable pkVal() {
        return this.serialNo;
    }

}